<!DOCTYPE html><html lang="zh-Hans"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><meta name="description" content="huluo的技术博客"><meta name="keywords" content=""><meta name="author" content="kyren"><meta name="copyright" content="kyren"><title>Stay hungry, stay foolish | Kyren's Blog</title><link rel="shortcut icon" href="/melody-favicon.ico"><link rel="stylesheet" href="/css/index.css?version=1.9.0"><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@latest/css/font-awesome.min.css?version=1.9.0"><meta name="format-detection" content="telephone=no"><meta http-equiv="x-dns-prefetch-control" content="on"><link rel="dns-prefetch" href="https://cdn.jsdelivr.net"><link rel="dns-prefetch" href="https://hm.baidu.com"><script>var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?cf87fcdbd9ab7cf93d894f7c219ae78f";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();</script><meta http-equiv="Cache-Control" content="no-transform"><meta http-equiv="Cache-Control" content="no-siteapp"><script src="https://v1.hitokoto.cn/?encode=js&amp;charset=utf-8&amp;select=.footer_custom_text" defer></script><script>var GLOBAL_CONFIG = { 
  root: '/',
  algolia: undefined,
  localSearch: {"path":"search.xml","languages":{"hits_empty":"找不到您查询的内容:${query}"}},
  copy: {
    success: '复制成功',
    error: '复制错误',
    noSupport: '浏览器不支持'
  },
  hexoVersion: '6.2.0'
} </script><meta name="generator" content="Hexo 6.2.0"></head><body><i class="fa fa-arrow-right" id="toggle-sidebar" aria-hidden="true"></i><div id="sidebar" data-display="false"><div class="author-info"><div class="author-info__avatar text-center"><img src="https://avatars.githubusercontent.com/u/5827823?v=4"></div><div class="author-info__name text-center">kyren</div><div class="author-info__description text-center">huluo的技术博客</div><div class="follow-button"><a target="_blank" rel="noopener" href="https://github.com/huluo666">Follow Me</a></div><hr><div class="author-info-articles"><a class="author-info-articles__archives article-meta" href="/archives"><span class="pull-left">文章</span><span class="pull-right">239</span></a><a class="author-info-articles__tags article-meta" href="/tags"><span class="pull-left">标签</span><span class="pull-right">41</span></a><a class="author-info-articles__categories article-meta" href="/categories"><span class="pull-left">分类</span><span class="pull-right">29</span></a></div><hr><div class="author-info-links"><div class="author-info-links__title text-center">Links</div><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://192.168.2.212:9090/">Jira</a><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://192.168.2.212:8090/">Confluence</a><a class="author-info-links__name text-center" target="_blank" rel="noopener" href="http://bloc.leniugame.com/">Leniu</a></div></div></div><nav class="no-bg" id="nav"><div id="page-header"><span class="pull-left"> <a id="site-name" href="/">Kyren's Blog</a></span><i class="fa fa-bars toggle-menu pull-right" aria-hidden="true"></i><span class="pull-right menus">   <a class="site-page" href="/">主页</a><a class="site-page" href="/essay">随笔</a><a class="site-page" href="/archives">归档</a><a class="site-page" href="/tags">标签</a><a class="site-page" href="/categories">分类</a><a class="site-page" href="/about">关于</a></span><span class="pull-right"><a class="site-page social-icon search"><i class="fa fa-search"></i><span> 搜索</span></a></span></div><div id="site-info"><div id="site-title">Kyren's Blog</div><div id="site-sub-title">Stay hungry, stay foolish</div><div id="site-social-icons"><a class="social-icon" href="https://github.com/huluo666" target="_blank" rel="noreferrer noopener nofollow"><i class="fa-github fa"></i></a></div></div></nav><div id="content-outer"><div class="layout" id="content-inner"><div class="recent-post-item article-container"><a class="article-title" href="/2018/02/02/macOS%20%E5%B0%8F%E6%8A%80%E5%B7%A7/">macOS 小技巧</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2018-02-02</time><div class="content">macOS 小技巧
1、xxxApp已损坏，打不开，你应该将它移到废纸篓更新到最新系统 macOS Sierra 后发现系统偏好设置-&gt;安全性与隐私中默认已经隐藏了运行安装任何来源App的选项
在终端中输入命令 
1sudo spctl --master-disable  #全局

针对某一A ...</div><a class="more" href="/2018/02/02/macOS%20%E5%B0%8F%E6%8A%80%E5%B7%A7/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2018/02/01/%E5%BC%80%E5%8F%91%E8%B0%83%E8%AF%95%E5%B7%A5%E5%85%B7/">Mac开发调试工具</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2018-02-01</time><div class="content">1、whistlehttps://github.com/avwo/whistle

安装 sudo npm install -g whistle

启动whistle: w2 start

停止whistle: w2 stop


 基于Node实现的跨平台调试代理工具，不仅可以作为普通的HTTP代 ...</div><a class="more" href="/2018/02/01/%E5%BC%80%E5%8F%91%E8%B0%83%E8%AF%95%E5%B7%A5%E5%85%B7/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2018/02/01/JM2018_03_01_101/">个人简历</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2018-02-01</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/resume/">resume</a></span><div class="content">简历预览胡罗男|未婚|1989年9月生|
            户口：湖南-邵阳|
              现居住于:广东 广州-天河区5年工作经验
            |无党派人士15360551286
              E-mail：hulu666@126.com求职意向工作 ...</div><a class="more" href="/2018/02/01/JM2018_03_01_101/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2018/01/29/%20iOS:Cocoa%E8%B0%83%E7%94%A8python/">iOS/Cocoa调用python</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2018-01-29</time><div class="content">C++与Python的混合编程-C++调用Pythonhttps://github.com/hailongiPhone/python-into-iOShttps://github.com/PerfectlySoft/Perfect-Pythonhttps://gist.github.com/andy ...</div><a class="more" href="/2018/01/29/%20iOS:Cocoa%E8%B0%83%E7%94%A8python/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2018/01/21/python%E8%8E%B7%E5%8F%96%E7%99%BE%E5%BA%A6%E7%BB%93%E6%9E%9C%E6%95%B0/">python获取百度结果数</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2018-01-21</time><div class="content">1234567891011121314151617181920#!/usr/bin/python# -*- coding: UTF-8 -*-  import urllibimport urllib2import requestsimport redef download_html(keywords ...</div><a class="more" href="/2018/01/21/python%E8%8E%B7%E5%8F%96%E7%99%BE%E5%BA%A6%E7%BB%93%E6%9E%9C%E6%95%B0/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2018/01/16/%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E5%86%99%E5%8D%9A%E5%AE%A2/">为什么要写博客</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2018-01-16</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/%E9%9A%8F%E7%AC%94/">随笔</a></span><span class="article-meta tags"><span class="article-meta__separator">|</span><i class="fa fa-tag article-meta__icon" aria-hidden="true"></i><a class="article-meta__tags" href="/tags/%E9%9A%8F%E7%AC%94/">随笔</a></span><div class="content">写博客到现在的时间已经2年多了，回看一下，发现自己写的还真不少，但想想作为一个快4年的开发者来说，前2年的积累的确实有点少，至少从笔记上来说，写博客的原因有很多，简单来说有以下几点。

将自己好不容易理解记住的东西写下来，给自己备查；
记下一些研究课题，一些参考资源
个人知识库的一个补充

​    ...</div><a class="more" href="/2018/01/16/%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E5%86%99%E5%8D%9A%E5%AE%A2/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2018/01/15/tableview%E5%90%84%E7%A7%8D%E8%87%AA%E5%AE%9A%E4%B9%89/">Cell分割线顶格</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2018-01-15</time><div class="content">Cell分割线顶格
https://stackoverflow.com/questions/25770119/ios-8-uitableview-separator-inset-0-not-working
UITableView分割线Separator这件小事
https://segmentfaul ...</div><a class="more" href="/2018/01/15/tableview%E5%90%84%E7%A7%8D%E8%87%AA%E5%AE%9A%E4%B9%89/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2018/01/15/regexConvertTool/">正则表达式转换</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2018-01-15</time><span class="article-meta"><span class="article-meta__separator">|</span><i class="fa fa-inbox article-meta__icon" aria-hidden="true"></i><a class="article-meta__categories" href="/categories/devtools/">devtools</a></span><div class="content">


	 
	正则表达式转换
	  
	
	
	
	
	
		/* textarea 自适应父容器大小 */  
		.comments {  
			width: 100%; /*自动适应父布局宽度*/  
			overflow: auto;  
			word-break: break-all ...</div><a class="more" href="/2018/01/15/regexConvertTool/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2018/01/11/iOS%E5%AD%97%E7%AC%A6%E4%B8%B2%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/">字符串常用操作</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2018-01-11</time><div class="content">ios 去除字符串首尾空格、换行1）如果您只需要从字符串中删除给定的字符（比如空格字符），请使用：
12NSString *yourString = @&quot;   .@^this text has spaces before and after*&amp; &quot;;[yourString ...</div><a class="more" href="/2018/01/11/iOS%E5%AD%97%E7%AC%A6%E4%B8%B2%E5%B8%B8%E7%94%A8%E6%93%8D%E4%BD%9C/#more" style="margin-top: 14px">阅读更多</a><hr></div><div class="recent-post-item article-container"><a class="article-title" href="/2018/01/08/%20Tinypng%E5%9B%BE%E7%89%87%E5%8E%8B%E7%BC%A9%E8%84%9A%E6%9C%AC/">Tinypng图片压缩脚本</a><time class="post-meta__date"><i class="fa fa-calendar" aria-hidden="true"></i> 2018-01-08</time><div class="content">本想写个Finder插件，鼠标右键弹出tinypng压缩菜单，直接点击压缩，在App程序上执行没问题，但Finder扩展上报错了，查了很多资料发现这是苹果的一个bug，哪怕开了沙盒，扩展也无法读写本地文件，几年了也没修复，所以放弃这种做法，脚本还是能用的。
https://tinypng.com/
 ...</div><a class="more" href="/2018/01/08/%20Tinypng%E5%9B%BE%E7%89%87%E5%8E%8B%E7%BC%A9%E8%84%9A%E6%9C%AC/#more" style="margin-top: 14px">阅读更多</a><hr></div><nav id="pagination"><div class="pagination"><a class="extend prev" rel="prev" href="/page/4/"><i class="fa fa-chevron-left"></i></a><a class="page-number" href="/">1</a><span class="space">&hellip;</span><a class="page-number" href="/page/4/">4</a><span class="page-number current">5</span><a class="page-number" href="/page/6/">6</a><span class="space">&hellip;</span><a class="page-number" href="/page/24/">24</a><a class="extend next" rel="next" href="/page/6/"><i class="fa fa-chevron-right"></i></a></div></nav></div></div><footer><div class="layout" id="footer"><div class="copyright">&copy;2022 By kyren</div><div class="framework-info"><span>驱动 - </span><a target="_blank" rel="noopener" href="http://hexo.io"><span>Hexo</span></a><span class="footer-separator">|</span><span>主题 - </span><a target="_blank" rel="noopener" href="https://github.com/Molunerfinn/hexo-theme-melody"><span>Melody</span></a></div><div class="footer_custom_text">hitokoto</div><div class="busuanzi"><script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script><span id="busuanzi_container_site_uv"><i class="fa fa-user"></i><span id="busuanzi_value_site_uv"></span><span></span></span><span class="footer-separator">|</span><span id="busuanzi_container_site_pv"><i class="fa fa-eye"></i><span id="busuanzi_value_site_pv"></span><span></span></span></div></div></footer><i class="fa fa-arrow-up" id="go-up" aria-hidden="true"></i><script src="https://cdn.jsdelivr.net/npm/animejs@latest/lib/anime.min.js"></script><script src="https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js"></script><script src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@latest/dist/jquery.fancybox.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-animate@latest/velocity.min.js"></script><script src="https://cdn.jsdelivr.net/npm/velocity-ui-pack@latest/velocity.ui.min.js"></script><script src="/js/utils.js?version=1.9.0"></script><script src="/js/fancybox.js?version=1.9.0"></script><script src="/js/sidebar.js?version=1.9.0"></script><script src="/js/copy.js?version=1.9.0"></script><script src="/js/fireworks.js?version=1.9.0"></script><script src="/js/transition.js?version=1.9.0"></script><script src="/js/scroll.js?version=1.9.0"></script><script src="/js/head.js?version=1.9.0"></script><script src="/js/search/local-search.js"></script><script>if(/Android|webOS|iPhone|iPod|iPad|BlackBerry/i.test(navigator.userAgent)) {
  $('#nav').addClass('is-mobile')
  $('footer').addClass('is-mobile')
  $('#top-container').addClass('is-mobile')
}</script><div class="search-dialog" id="local-search"><div class="search-dialog__title" id="local-search-title">本地搜索</div><div id="local-input-panel"><div id="local-search-input"><div class="local-search-box"><input class="local-search-box--input" placeholder="搜索文章"></div></div></div><hr><div id="local-search-results"><div id="local-hits"></div><div id="local-stats"><div class="local-search-stats__hr" id="hr"><span>由</span> <a target="_blank" rel="noopener" href="https://github.com/wzpan/hexo-generator-search" style="color:#49B1F5;">hexo-generator-search</a>
 <span>提供支持</span></div></div></div><span class="search-close-button"><i class="fa fa-times"></i></span></div><div class="search-mask"></div></body></html>